<template>
	<view class="iconlist">
		<view @tap="icontap('xh')">
			<image class="iconimg" :src="xhis" mode=""></image>
			<text class="icontitle">{{redata.xhnum}}</text>
		</view>
		<view @tap="icontap('bxh')">
			<image class="iconimg" :src="bxhs" mode=""></image>
			<text class="icontitle">{{redata.bxhnum}}</text>
		</view>
		<view @tap="icontap('pl')">
			<image class="iconimg" src="../static/icon/pl.png" mode=""></image>
			<text class="icontitle">{{redata.plnum}}</text>
		</view>
		<view @tap="icontap('sc')">
			<image class="iconimg" :src="scis" mode=""></image>
			<text class="icontitle">{{redata.scnum}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"iconview",
		props:['redata','iconTap'],
		data() {
			return {
				
			};
		},
		computed:{
			xhis(){
				return this.redata.xhis ? '../static/icon/xh_.png' : '../static/icon/xh_.png'
			},
			bxhs(){
				return this.redata.bxhs ? '../static/icon/bxhs.png' : '../static/icon/bxhs.png'
			},
			scis(){
				return this.redata.scis ? '../static/icon/blike.png' : '../static/icon/blike.png'
			}
		},
		methods:{
			icontap(e){
				this.iconTap(e);
			}
		}
	}
</script>

<style>
	.iconlist{
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 750rpx;
		height: 60rpx;
		justify-content: space-around;
		
	}
	.iconlist>view{
		display: flex;
		flex-direction: row;
	}
	.iconimg{
		width: 36rpx;
		height: 36rpx;
		display: block;
		margin-right: 8rpx;
	}
	.icontitle{
		font-size: 14px;
		opacity: .8;
	}
</style>
